import {postRequest, getRequest} from '@/common/request'
import {urls} from './url'

const transportConfirmApi = urls.transportConfirm;

function list(param, page, pageSize, success, complete) {
  postRequest(transportConfirmApi.list + '?currentpage=' + page + '&pagesize=' + pageSize, {}, param, success, complete)
}
 
function remove(ids, success, complete) {
  let parms = []
  parms.push(ids)
  postRequest(transportConfirmApi.del, {}, {ids: parms}, success, complete)
}

function load(id, success, complete) {
  getRequest(transportConfirmApi.load + id, {}, success, complete)
}

function batchRemove(ids, success, complete) {
  postRequest(transportConfirmApi.del, {}, {ids: ids}, success, complete)
}



export default {
  list,
  remove,
  load,
  batchRemove
}
